/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lesson10;
/**
 *
 * @author netcracker
 */
public class VectorObserver implements Observer {
    
    private static int ID = 0;
    private String name = "Unnamed";

    public VectorObserver(String name) {
        this.name = name;
    }

    public VectorObserver() {
        name = name+ID;
        ID++;
    }
    
    @Override
    public void updated() {

        System.out.println(name+" SEE UPDATE");
    }

    @Override
    public void updated(int index, double value) {
        System.out.println(name+ " value on index:"+index+" now: "+value);
    }
}
